package com.itheima.test_dome.service.impl;

import com.itheima.test_dome.dao.UserMapper;
import com.itheima.test_dome.pojo.User;
import com.itheima.test_dome.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper usermapper;

    public void getById(Integer id){
        usermapper.getById(id);
    };

    public void add(User user){
        usermapper.add(user);
    };

    public void deleteById(Integer id){
        usermapper.deleteById(id);
    };

    public void updataById(User user){
        usermapper.updataById(user);
    };
}
